package com.fusuhai02;

public class Employee {
    String name;
    String address;
    int SSN;
    int number;


    public void mailcheck(){
        System.out.println("将员工" + this.name + "的支票寄到 " + this.address);
    }
    public  String toString(){
        return "编号为"+this.number+"的员工的姓名为"+this.name;
    }

    @Override

    public  boolean equals(Object x){
        if (x==null) return false;
        Employee b = (Employee) x;
        if(this.number==b.number){
            return true;
        }else{
            return false;
        }
    }

    protected void mailCheck() {
    }
}
